/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 * ***************************************************************************/



#if !defined(AFX_PGLCIRCLEMARKER_H__88C7EEF2_A34B_4511_BA25_7398BF727DF1__INCLUDED_)
#define AFX_PGLCIRCLEMARKER_H__88C7EEF2_A34B_4511_BA25_7398BF727DF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <pgl/core/PGLMarker.h>

/*! \brief A circle marker

  \ingroup PGLMarkerGroup
*/
class PGLCORE_EXT_CLASS CPGLCircleMarker : public CPGLMarker  
{
PGL_DECLARE_DYNCREATE(CPGLCircleMarker);
public:
	//! \name Constructors
	//@{
	//! \name Default constructor
	CPGLCircleMarker(const CPGLColor& _color=CPGLColor(), const CPGLColor& _FillColor=CPGLColor(1,1,1,1), double dRadius = 4, bool bFilled = false)
		:CPGLMarker( _color, _FillColor, dRadius, bFilled ){};
	//! Copy constructor
	CPGLCircleMarker(const CPGLCircleMarker& c){*this = c;};
	//! Assignement constructor
	CPGLCircleMarker& operator = (const CPGLCircleMarker& c);
	virtual ~CPGLCircleMarker(){};
	//@}


	//! \name Plotting functions
	//@{
	//! Main plotting function
	void PlotGfx(gfxinterface::CGfxInterface& gfx, CPGLDataPtr pDataX, CPGLDataPtr pDataY);
	//! Legend plotting
	void PlotLegendGfx(gfxinterface::CGfxInterface& gfx, float x, float y);
	//! returns line type
	DWORD GetLineType() const		{	return CPGLMarker::GetLineType() | gfxinterface::LineTypeClosed;};
	//@}

	//! \name Serialize functions
	//@{
	//! Serialiation to XML
	void SerializeXML(CPGLArchive& ar);

	//! Debuggin functions
	#ifdef _DEBUG
		//! MFC Dump
	    virtual void Dump( CDumpContext& dc ) const;
		//! MFC AssertValid
	    virtual void AssertValid() const;   
	#endif
	//@}
};

PGL_DECLARE_SMARTPTR( CPGLCircleMarker );

#endif // !defined(AFX_PGLCIRCLEMARKER_H__88C7EEF2_A34B_4511_BA25_7398BF727DF1__INCLUDED_)
